package com.link.base.base.product.dao.mybatis.mapper;

import com.link.base.base.product.model.GuideProdCase;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * @author XYQ
 * @date 2017/10/13
 * @comments 案例与产品操作
 */
public interface GuideProdCaseMapper extends BasicMapper<GuideProdCase> {
    /**
     * 根据案例id查询与之相关联的产品集合
     *
     * @author XYQ
     * @param record
     * @return 产品集合
     * @throws Exception
     */
    public List<GuideProdCase> queryByCaseBaseId(GuideProdCase record) throws Exception;

    /**
     * 根据产品id查询与之相关联的案例集合
     *
     * @author XYQ
     * @param record
     * @return 产品集合
     * @throws Exception
     */
    public List<GuideProdCase> queryByProductId(GuideProdCase record) throws Exception;

}
